<?php
session_start( );
?>
<?php
require_once('connections/mysqlDB.php');
?>
<?php 
$dbConn = new mysqli(HOST,USER,PWD,DB);
// get login user regid
$regid=  $_SESSION['regid'];
//echo $myusername . '/' . $mypassword . '$$$<br>';
/* prepare statement */
if ($stmt = $dbConn->prepare("SELECT rid FROM registration WHERE regid = ?")) {
    $stmt->bind_param('s', $regid);
    $stmt->execute(); 
	$stmt->bind_result($col1);
	while ($stmt->fetch()) {
	$_SESSION['rid'] = $col1;
	//echo "1. <a href=\"con_registration.php?rid=" . $col1 . "\">" . $col1 . "</a>" ;

	}
}
?>